DUMPS BASE EXAM DUMPS COMPTIA XK0-004 28% OFF Automatically For You CompTIA Linux+ Certification Exam Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam 1.Given the output below: [root@appserver ~]# rm config.txt rm: remove regular file 'config.txt'? yes rm: cannot remove 'config.txt': Operation not permitted Which of the following might be the cause? A. The file config.txt does not have the user write bit set. B. The file config.txt does not exist. C. The file config.txt has the immutable attribute set. D. The file config.txt has an ACL that does not permit deletion by others. Answer: A 2.Ann, a user, has created a new directory and noticed that permissions on the new directory are as follows: drwx------. 1 ann ann 0 Jun 11 08:20 work Which of the following should the administrator do to restore default permissions for newly created directories? A. Change umask value in /etc/profile. B. Run chmod command to update permissions. C. Modify directory ownership to ann:ann with chown. D. Execute chattr command to restore default access. Answer: A Explanation: Reference: https://geek-university.com/linux/set-the-default-permissions-for-newly- created-files/ 3.A systems administrator is receiving errors while trying to install a popular virtualization software. The software specifications state the processor needs to support virtualization with Intel instructions. Additional requirements state the processor must accelerate encryption/decryption and use hyperthreading. Given the following output about the processor: fpu ume depse tsu msr pae mce cx8 apic sep mtrr pae mca cmov pat pse36 cflusm mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx rdrand hypervisor lahf_lm fsgsbase Which of the following is the MOST likely reason for the errors? A. The processor supports AMD instructions rather than Intel. B. The processor cannot accelerate decryption. C. The processor does not support hyperthreading. D. The processor is running inside a virtual machine. Answer: C Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam 4.Users are reporting collaborate.company.com is inaccessible from the user VLAN, but there is no issue connecting to the system’s web page from the DMZ. Given the following outputs from commands run on the system: Which of the following explains why users are unable to access the system from the user VLAN, and how can the administrator remediate this issue? A. Users cannot access the system because the IP subnet mask is /24. The remediation for this issue is to set the IP subnet mask to /16. B. Users cannot access the system because the DNS server has the incorrect IP address. The remediation for this issue is to edit the DNS configuration to point to the correct IP. C. Users cannot access the system because the connectivity port is running on the incorrect IP. The remediation for this issue is to edit the configuration file to listen on all interfaces. D. Users cannot access the system because the default gateway has the wrong interface. The remediation for this issue is to set the default gateway to the proper interface. Answer: C 5.Given that a company’s policy states that users cannot install third-party tools on Window servers, which of the following protocols will allow a Linux GUI to connect to a Windows server? A. VNC B. NX Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam C. RDP D. X11 Answer: A Explanation: Reference: https://phoenixnap.com/kb/ssh-to-connect-to-remote-server-linux-or- windows 6.An administrator needs to see a list of the system user’s encrypted passwords. Which of the following Linux files does the administrator need to read? A. /etc/shadow B. /etc/skel C. /etc/passwd D. /etc/pw Answer: C Explanation: Reference: https://www.cyberciti.biz/faq/where-are-the-passwords-of-the-users- located-in-linux/ 7.A user creates and installs a Linux VM on a local workstation. The VM can only connect to the local workstation. Which of the following BEST represents the default virtual network configuration in this instance? A. Host-only B. Bridged C. NAT D. Dual-homed Answer: A 8.A systems administrator wants to deploy several applications to the same server quickly. Each application should be abstracted from the host with its own dependencies and libraries and utilize a minimal footprint. Which of the following would be BEST in this scenario? A. Virtual machines B. Type 2 hypervisor C. Chroot jails D. Containers Answer: D Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam 9.Which of the following will provide a list of all flash, external, internal, and SSD drives? A. lspci B. lsmod C. lsblk D. lsusb Answer: C Explanation: Reference: https://www.linux.com/learn/intro-to-linux/2017/3/how-format-storage- devices-linux 10.A systems administrator is implementing disk quotas on /home. During the process, the administrator receives the following error: Cannot find filesystem to check or filesystem not mounted with user quota option. Which of the following is the correct order of steps the administrator should follow to resolve this error? A. 1. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it. 11. Remount /home. 12. Create the quota database files and generate the disk usage table. 13. Assign user quota policies. B. 1. Create the quota database files and generate the disk usage table. 14. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it. 15. Remount /home. 16. Assign user quota policies. C. 1. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it. 17. Create the quota database files and generate the disk usage table. 18. Remount /home. 19. Assign user quota policies. D. 1. Assign user quota policies. 20. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it. 21. Create the quota database files and generate the disk usage table. Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam 22. Remount /home. Answer: A Explanation: Reference: https://www.howtoforge.com/community/threads/quotacheck-cannot-find- filesystem-tocheck.25954/ 23.A Linux administrator tries to ping a hostname in a network but receives the message: hostname not found. The administrator is sure the name exists on the network and wants to verify if the DNS server is correctly configured on the client. Which of the following files should the administrator use to verify this information? A. /etc/named.conf B. /etc/resolv.conf C. /etc/nsswitch.conf D. /etc/network Answer: B Explanation: Reference: https://www.hostgator.com/help/article/error-your-hostname-could-not-be- resolved-to-an-ipaddress 24.A user is unable to write data to an NFS datastore at /mnt/storage. A df command indicates 50% free inodes. Which of the following commands should the user attempt NEXT to diagnose the situation? A. df -h /mnt/storage B. du -sh /mnt C. fdisk -l /mnt/storage D. df -i /mnt/storage Answer: C 25.An administrator needs to see the type of CPU that a server is running. Which of the following files contains this information? A. /proc/cpuinfo B. /etc/devices/info.conf C. /dev/proc/cpu D. /sys/dev/cpuinfo Answer: A Explanation: Reference: https://www.binarytides.com/linux-cpu-information/ Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam 26.A new IO card has been added to the security server to log the opening and closing of the main entrance. A switch is attached, so the interface card returns a 1 when the door is opened and a 0 when the door is closed. Which of the following describes the Linux device to which this switch is attached? A. /dev/tty0 B. /dev/port C. /dev/gpio D. /dev/sg0 Answer: B 27.Which of the following commands would show the default printer on a Linux system? A. lpr B. lpq C. lpstat D. lspci Answer: B Explanation: Reference: https://superuser.com/questions/123576/show-default-linux-printer 28.A user tries to log in to the Linux console and receives the following message: Your account has expired; Please contact your system administrator. Which of the following commands was MOST likely run to create this behavior? A. passwd B. usermod C. userdel D. chage Answer: D 29.An administrator wants to know the amount of memory installed on a Linux server. Which of the following commands can be used to accomplish this task? A. cat /sys/proc/meminfo B. cat /proc/meminfo C. cat /proc/sys/meminfo D. cat /sys/meminfo Answer: D Explanation: Reference: https://devconnected.com/how-to-check-ram-on-linux/#:~:text=The most Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam popular command in,use the “free” command.&text=As you can see%2C the,(also called virtual memory) 30.A systems administrator suspects a process with a PID of 2864 is consuming resources at an alarming rate. The administrator uses the command renice -n -5 -p2864, but it does not solve the issue. Which of the following commands should the administrator execute to correct the issue? A. nice -n 5 -p 2864 B. nice -n -5 -p 2864 C. renice -n 10 -p 2864 D. renice -n -10 -p 2864 Answer: D 31.A Linux administrator is testing connectivity to a remote host on a shared terminal. The administrator wants to allow other users to access the terminal while the command is executing. Which of the following commands should the administrator use? A. bg ping remotehost B. fg ping remotehost C. ping remotehost < results D. ping remotehost & Answer: C 32.A Linux systems administrator is setting up SSH access with PKI for several using their newly created RSA keys. Which of the following MOST securely achieves this task? A. Use curl to copy each user’s public key file to the respective system B. Use cp to copy each user’s public key file to the respective system C. Use ssh-copy-id to copy each user’s public key file to the respective system D. Use ssh-copy-id to copy each user’s private key file to the respective system Answer: C Explanation: Reference: https://www.linode.com/docs/security/authentication/use-public-key- authentication-with-ssh/ 33.DRAG DROP You have been asked to parse a log file of logins to determine various information Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam about who is logging in and when. INSTRUCTIONS Open and inspect the Login log file. Drag and drop the correct commands onto the output that was generated from that command. Tokens can be used only once and not all will be used. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button. Answer: Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam 34.A user needs to modify the IP address of a laptop. Which of the following files can be used to configure the network interface named eth0? A. /etc/sysconfig/network/interfaces.cnf B. /system/config/interfaces C. /etc/sysconfig/network-scripts/ifcfg-eth0 D. /system/networking/ifconfig E. /etc/interfaces/eth0.conf Answer: C Explanation: Reference: https://opensource.com/life/16/6/how-configure-networking-linux 35.Ann, a junior Linux administrator, needs to copy software from her local machine to assist in developing a software application on a remote machine with the IP address 192.168.3.22. The file needs to be placed on the /tmp directory. Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam After downloading the RPM to the local machine, which of the following commands would be BEST to use to copy the software? A. scp ~/software.rpm USER@192.168.3.22:/tmp B. scp ~/software.rpm USER@192.168.3.22: /tmp C. wget USER@192.168.3.22:/tmp -f ~/software.rpm D. scp USER@192.168.3.22 ~/software.rpm :/tmp Answer: C Explanation: Reference: https://linuxize.com/post/wget-command-examples/ 36.A systems administrator wants to mount an ISO to access its content. Using /mnt as a mount point, which of the following is the correct syntax? A. mount -o iso9660 /dev/sr0 /mnt B. mount -o loop -t iso /mnt C. mount -o loop /tmp/image.iso /mnt D. mount -o loop /dev/kvm /mnt Answer: D Explanation: Reference: https://www.cyberciti.biz/tips/how-to-mount-iso-image-under-linux.html 37.A Linux administrator needs to disable the Sendmail service on a Linux server and prevent it from being started manually and during boot. Which of the following is the BEST command to do this? A. systemctl reset-failed sendmail B. systemctl mask sendmail C. systemctl stop sendmail D. systemctl disable sendmail Answer: C 38.A user attempts to use the mount -a command but gets the following error: mount: mount point /mnt/test does not exist Which of the following commands best describes the action the Linux administrator should take NEXT? A. mount Ca /mnt/test B. mkdir Cp /mnt/test C. mdadm Cp /mnt/test D. mkfs /mnt/test E. touch /mnt/test Answer: B Explanation: Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam Reference: https://serverfault.com/questions/751113/mount-point-does-not-exist- despite-creating-it 39.An administrator is troubleshooting an application that has failed to start after the server was rebooted. Noticing the data volume is not mounted, the administrator attempts to mount it and receives this error: Upon checking the logical volume status, the administrator receives this information: Which of the following can be said about the data logical volume, and how can this problem be resolved? A. The logical volume is not active. The administrator should make it active with lvchange - ay /dev/ datavg/datalv and then mount it. B. The logical volume file system has become corrupted. The administrator should repair it with xfs_repair/dev/datavg/datalv and then mount it. C. The logical volume is OK but the /dev special files are missing. The administrator should recreate them by running /dev/MAKEDEV. D. The file system is read-only. The administrator should remount it as read-write with the command mount - o remount.rw /data. Answer: A 40.An operator finds a user is having issues with opening certain files. Which of the following commands would allow the security administrator to list and check the SELinux context? A. ls CD B. ls Ca C. ls CZ D. ls -1 Answer: C Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam Explanation: Reference: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/ 6/html/security-enhanced_linux/sect-security-enhanced_linux-working_with_selinux- selinux_contexts_labeling_files 41.A site reliability engineer updated the latest configuration management scripts and committed them to a workstream called either test or patch. A Linux administrator wants to ensure these latest workstreams are able to be retrieved to the server. Which of the following is the BEST Git attribute to use? A. branch B. fetch C. log D. pull Answer: D 42.The following represents a partial listing of a user’s .bashrc file: HISTSIZE=800 HISTFILESIZE=1000 umask 2002 HISTCONTROL=ignoreboth When the user opens a terminal, an error message appears: Octal number out of range Which of the following lines in the partial .bashrc should be modified to prevent the error from occurring? A. HISTSIZE=800 B. HISTFILESIZE=1000 C. umask 2002 D. HISTCONTROL=ignoreboth Answer: C 43.A Linux administrator tried to copy files to a remote server but received an error message indicating a lack of free space on the disk. The administrator issued a df command and verified adequate free space and inodes on the filesystem. Which of the following commands is the BEST way to diagnose the issue? A. cat /proc/meminfo B. lsof -nP | grep deleted C. find / -type f -size +50M D. du -a / | sort -n -r | head -n 30 Answer: B Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam 44.A Linux systems administrator needs to set permissions on an application with the following parameters: The owner of the application should be able to read, write, and execute the application. Members of the group should be able to read and execute the application. Everyone else should not have access to the application. Which of the following commands would BEST accomplish these tasks? A. chmod 710 <application name> B. chmod 730 <application name> C. chmod 750 <application name> D. chmod 760 <application name> Answer: D 45.A user cannot write files to the /home/user directory. The junior Linux administrator runs the following commands: Which of the following BEST represents why the user cannot write files? A. The filesystem is out of inodes. B. The filesystem is out of file space. C. The filesystem is not configured for the user to write to it. D. The filesystem does not have a group write permission. Answer: D 46.An issue was discovered on a testing branch of a Git repository. A file was inadvertently modified and needs to be reverted to the master branch version. Which of the following is the BEST option to resolve the issue? A. git branch -b master file B. git merge master testing C. git stash branch master D. git checkout master -- file Answer: D Explanation: Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam Reference: https://www.git-scm.com/book/en/v2/Git-Basics-Undoing-Things 47.When a technician plugs a USB flash drive into a server, the drive does not mount automatically. Which of the following commands will provide the information needed to mount the drive manually? A. modinfo B. lshw C. lspci D. mount Answer: D 48.A server is almost out of free memory and is becoming unresponsive. Which of the following sets of commands will BEST mitigate the issue? A. free, fack, partprobe B. lsof, lvcreate, mdadm C. df, du, rmmod D. fdisk, mkswap, swapon -a Answer: A Explanation: Reference: https://vitux.com/7-commands-to-check-swap-space-in-debian-10/ 49.A user wants to configure the application “myapp” to start on runlevels 2, 3, 4, and 5 every time the system starts. Which of the following commands will accomplish this task? A. chkconfig --level 2345 myapp on B. systemctl myapp on 2345 C. chkcinfig myapp --levels 2-5 D. systemctl --levels 2345 on Answer: A 50.Which of the following configuration management tools is considered agentless? A. Ouppet B. Salt C. Ansible D. Chef Answer: C Explanation: Reference: https://www.intigua.com/blog/puppet-vs.-chef-vs.-ansible-vs.-saltstack Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam 51.A Linux administrator implemented a new HTTP server using the default configuration. None of the users on the network can access the server. If there is no problem on the network or with the users’ workstations, which of the following steps will BEST analyze and resolve the issue? A. Run netstat to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443 B. Run route to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443 C. Run netcat to ensure the port is correctly bound, and configure a static route to the web to allow access on ports 80 and 443 D. Run route to ensure the port is correctly bound, and configure SELinux to allow access on ports 80 and 443 Answer: C Explanation: Reference: https://www.varonis.com/blog/netcat-commands/ 52.A Linux administrator needs to back up the folder /usr/domain, and the output must be a gzip compressed tar. Which of the following commands should be used? A. tar Ccv domain.tar.gz /usr/domain B. tar Ccvf /usr/domain domain.tar.gz C. tar Cczvf domain.tar.gz /usr/domain D. tar Ccxzv /usr/domain domain.tar.gz Answer: C Explanation: Reference: https://help.ubuntu.com/community/BackupYourSystem/TAR 53.A systems administrator is troubleshooting an intermittent network connection at the IP address 192.168.1.23. The administrator wishes to monitor the connection at five-minute intervals for one hour. Which of the following commands will accomplish this task? A. ping -i 5 192.168.1.23 B. ping -c 12 192.168.1.23 C. ping -c 12 -i 300 192.168.1.23 D. ping -c 60 -i 100 192.168.1.23 Answer: B Explanation: Reference: https://linuxize.com/post/linux-ping-command/ Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam 54.A Linux administrator needs to switch from text mode to GUI. Which of the following runlevels will start the GUI by default? A. Runlevel 3 B. Runlevel 4 C. Runlevel 5 D. Runlevel 6 Answer: C Explanation: Reference: http://www.linfo.org/runlevel_def.html 55.During the final step of staging new Linux hardware, GRUB2 is installed to the system drive. Which of the following BEST describes the role of GRUB2 in a new Linux installation? A. It provides a menu for creating administrator task shortcuts. B. It provides a menu for running special shell scripts. C. It provides a method to partition a hard drive. D. It provides a method to pass parameters to the Linux kernel on startup. Answer: B Explanation: Reference: https://docs.fedoraproject.org/en-US/fedora/rawhide/system-administrator s-guide/kernel-moduledriver-configuration/Working_with_the_GRUB_2_Boot_Loader/ 56.Users in the payroll department are not configured to use DNS due to security concerns. The users ask the junior Linux administrator to configure their workstations to access the payroll server at 192.168.204.11 by the name “Payroll”. Which of the following commands should the administrator issue to meet this request? A. echo “nameserver 192.168.204.11 #Payroll” >> /etc/resolv.conf B. echo “net.ipv4.ip_dynaddr=192.168.204.11 Payroll” >> /etc/sysctl.conf C. echo “192.168.204.11 Payroll” >> /etc/hosts D. echo ‘IPADDR=”192.168.204.11” #Payroll’ >> /etc/network/interface Answer: C 57.An administrator notices a website hosted on an httpd web server is not loading. Upon further inspection, the administrator learns there are no httpd processes running. When starting the service, the site operates correctly for a few minutes before the process disappears again. Which of the following should the administrator consider as the MOST likely possibility Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam before troubleshooting? the issue? A. The CPU has too much load, causing it to overheat, and the kernel is automatically killing the processes to keep the CPU cool. B. An external database to which the web server connects is offline, causing httpd to die due to execution errors. C. Shared libraries, which were recently updated, are causing compatibility issues and httpd to die due to version mismatch. D. The out-of-memory killer was activated due to low available memory, causing the kernel to kill the processes automatically. E. The server is intermittently losing access to the network, causing socket errors that trigger httpd to die. Answer: D 58.A Linux administrator needs to prevent the Postfix mail transfer agent from starting on boot. Which of the following commands will accomplish this task? A. systemctl stop postfix.service B. /etc/init.d/postfix stop C. systemctl disable postfix.service D. /etc/init.d/postfix disable Answer: B Explanation: Reference: https://www.cyberciti.biz/faq/linux-unix-start-stop-restart-postfix/ 59.Which of the following would be the BEST solution for a systems administrator to access the graphical user environment of a Linux machine remotely? A. VNC B. KDE C. X11 D. RPC Answer: A Explanation: Reference: https://www.sfu.ca/computing/about/support/tips/remote-to-linux-with- gui.html 60.A newly installed desktop is unable to connect to networked resources. The systems administrator executes various commands and reviews the following output snippets: Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam Which of the following should the systems administrator try NEXT to restore connectivity? A. arp -s 20:ad:1f:ab:10:0f 192.168.1.10 B. route add -net 192.168.1.0 netmask 255.255.255.0 C. dig -x @127.0.0.1 192.168.1.10 D. ip link set wlo1 up E. killall -HUP NetworkManager Answer: D 61.An administrator receives a warning about a file system filling up, and then identifies a large file located at /tmp/largelogfile. The administrator deletes the file, but no space is recovered on the file system. Which of the following commands would BEST assists the administrator in identifying the problem? A. lsof | grep largelogfile B. pkill /tmp/largelogfile C. pgrep largelogfile D. ps Cef | grep largelogfile Answer: A Explanation: Reference: https://access.redhat.com/solutions/2316 62.A systems administrator is configuring options on a newly installed Linux VM that will be deployed to the Pacific time zone. Which of the following sets of commands should the administrator execute to accurately configure the correct time settings? A. cd /etcln Cs /usr/share/zoneinfo/US/Pacific localtime B. cd /usr/localln Cs /usr/share/zoneinfo/US/Pacific zoneinfo C. cd /etc/localln Cs /usr/share/zoneinfo/US/Pacific localtime D. cd /usr/share/localln Cs /usr/share/zoneinfo/US/Pacific localectl Answer: A 63.A junior Linux administrator is setting up system-wide configuration settings. Up-to-date XK0-004 Dumps Questions V14.02 [2022] Pass CompTIA XK0-004 Exam The goal is to ensure the PATH environment variable includes the following locations for all users who log into a Linux system. The administrator issues the following commands at the terminal: Respectively, the output of these commands is as follows: Given this output, which of the following would be the BEST action for the administrator to perform to address this issue? A. Update the /etc/profile.d file using a text editor, navigate to the PATH element add the missing locations, and run the bash_completion.sh script to update the changes. B. Update the /etc/profile file using a text editor, navigate to the PATH element, add the missing locations and run the . /etc/profile command to update the changes. C. Update the /etc/profile.d file using a text editor, navigate to the PATH element, add the missing locations, and reboot to update the changes. D. Update the /etc/profile file using a text editor navigate to the PATH element, add the missing locations, and restart the bash process to update the changes. Answer: B